{include file="public/header" /}
</head>
<body>
<div class="wrap js-check-wrap">
    <form class="form-horizontal js-ajax-form" method="post" action="{:url('Url/log')}">
        <div class="well form-inline margin-top-20">
            筛选时间:
            <input type="text" class="form-control js-bootstrap-date" name="startDate"
                   value="{$params['startDate']}"
                   style="width: 140px;" autocomplete="off">-
            <input type="text" class="form-control js-bootstrap-date" name="endDate"
                   value="{$params['endDate']}"
                   style="width: 140px;" autocomplete="off">　
            关键词:
            <input type="text" class="form-control" name="keyword"
                   value="{$params['keyword']|default=''}" placeholder="请输入关键词">　
            短链地址:
            <input type="text" class="form-control" name="shortUrl"
                   value="{$params['shortUrl']|default=''}" placeholder="请输入原始链接">　
            <input type="submit" class="btn btn-primary" value="搜索"/>　
            <a class="btn btn-danger" href="{:url('Url/log')}">清空</a>
        </div>

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th>ID</th>
                <th>
                    短链接<br/>
                    原始链接
                </th>
                <th>原始域名</th>
                <th>原始路径</th>
                <th>原始参数</th>
                <th width="200">头部信息</th>
                <th>ip</th>
                <th>创建时间</th>
            </tr>
            </thead>
            {foreach name="list" item="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>
                    {$vo.shortUrl}<br/>
                    {$vo.fullUrl}
                </td>
                <td>{$vo.linkHost}</td>
                <td>{$vo.linkPath}</td>
                <td>{$vo.linkQuery}</td>
                <td>{$vo.userAgent}</td>
                <td>{$vo.ip}</td>
                <td>{$vo.createTime}</td>
            </tr>
            {/foreach}
        </table>
        {:$pagination}
    </form>
</div>
<script src="{$static}js/admin.js"></script>
<script src="{$static}js/layer/layer.js"></script>
</body>
</html>